package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-03
 */
@TableName("sys_oauth_client")
@Accessors(chain = true)
@Setter
@Getter
public class SysOauthClient extends Model<SysOauthClient> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("client_id")
    private String clientId;

    @TableField("resource_ids")
    private String resourceIds;

    @TableField("client_secret")
    private String clientSecret;

    private String scope;

    @TableField("authorized_grant_types")
    private String authorizedGrantTypes;

    @TableField("web_server_redirect_uri")
    private String webServerRedirectUri;

    private String authorities;

    @TableField("access_token_validity")
    private Integer accessTokenValidity;

    @TableField("refresh_token_validity")
    private Integer refreshTokenValidity;

    @TableField("additional_information")
    private String additionalInformation;

    private String autoapprove;

//    public Long getId() {
//        return id;
//    }
//
//    public SysOauthClient setId(Long id) {
//        this.id = id;
//        return this;
//    }
//    public String getClientId() {
//        return clientId;
//    }
//
//    public SysOauthClient setClientId(String clientId) {
//        this.clientId = clientId;
//        return this;
//    }
//    public String getResourceIds() {
//        return resourceIds;
//    }
//
//    public SysOauthClient setResourceIds(String resourceIds) {
//        this.resourceIds = resourceIds;
//        return this;
//    }
//    public String getClientSecret() {
//        return clientSecret;
//    }
//
//    public SysOauthClient setClientSecret(String clientSecret) {
//        this.clientSecret = clientSecret;
//        return this;
//    }
//    public String getScope() {
//        return scope;
//    }
//
//    public SysOauthClient setScope(String scope) {
//        this.scope = scope;
//        return this;
//    }
//    public String getAuthorizedGrantTypes() {
//        return authorizedGrantTypes;
//    }
//
//    public SysOauthClient setAuthorizedGrantTypes(String authorizedGrantTypes) {
//        this.authorizedGrantTypes = authorizedGrantTypes;
//        return this;
//    }
//    public String getWebServerRedirectUri() {
//        return webServerRedirectUri;
//    }
//
//    public SysOauthClient setWebServerRedirectUri(String webServerRedirectUri) {
//        this.webServerRedirectUri = webServerRedirectUri;
//        return this;
//    }
//    public String getAuthorities() {
//        return authorities;
//    }
//
//    public SysOauthClient setAuthorities(String authorities) {
//        this.authorities = authorities;
//        return this;
//    }
//    public Integer getAccessTokenValidity() {
//        return accessTokenValidity;
//    }
//
//    public SysOauthClient setAccessTokenValidity(Integer accessTokenValidity) {
//        this.accessTokenValidity = accessTokenValidity;
//        return this;
//    }
//    public Integer getRefreshTokenValidity() {
//        return refreshTokenValidity;
//    }
//
//    public SysOauthClient setRefreshTokenValidity(Integer refreshTokenValidity) {
//        this.refreshTokenValidity = refreshTokenValidity;
//        return this;
//    }
//    public String getAdditionalInformation() {
//        return additionalInformation;
//    }
//
//    public SysOauthClient setAdditionalInformation(String additionalInformation) {
//        this.additionalInformation = additionalInformation;
//        return this;
//    }
//    public String getAutoapprove() {
//        return autoapprove;
//    }
//
//    public SysOauthClient setAutoapprove(String autoapprove) {
//        this.autoapprove = autoapprove;
//        return this;
//    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysOauthClient{" +
        "id=" + id +
        ", clientId=" + clientId +
        ", resourceIds=" + resourceIds +
        ", clientSecret=" + clientSecret +
        ", scope=" + scope +
        ", authorizedGrantTypes=" + authorizedGrantTypes +
        ", webServerRedirectUri=" + webServerRedirectUri +
        ", authorities=" + authorities +
        ", accessTokenValidity=" + accessTokenValidity +
        ", refreshTokenValidity=" + refreshTokenValidity +
        ", additionalInformation=" + additionalInformation +
        ", autoapprove=" + autoapprove +
        "}";
    }
}
